package au.com.bellygoodengine.models;

import java.util.ArrayList;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Order {
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
	
	@Persistent
	private int tableNo;
	
	@Persistent
	private ArrayList<Menu> arrayList;
	
	public ArrayList<Menu> getArrayList() {
		return arrayList;
	}

	public void setArrayList(ArrayList<Menu> arrayList) {
		this.arrayList = arrayList;
	}

	public Order() {
		arrayList = new ArrayList<Menu>();
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public Key getKey() {
		return key;
	}

	public void setTableNo(int tableNo) {
		this.tableNo = tableNo;
	}

	public int getTableNo() {
		return tableNo;
	}

}
